﻿using System.Windows;

namespace SABnzbdNET
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        private void ApplicationStartup(object sender, StartupEventArgs e)
        {
            // Application is running
            // Create main application window, starting minimized if specified
            var mainWindow = new Views.MainView();
            if (SABnzbdNET.Properties.Settings.Default.StartMinimized)
            {
                mainWindow.WindowState = WindowState.Minimized;
            }
            mainWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            mainWindow.Show();
        }
    }
}
